﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TraCuuDiemNhom3.Commons;

namespace TraCuuDiemGroup3
{
    public partial class TCDMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
            if (TienIchWeb.NguoiDungCoQuyen("AD"))
            {
                //qt1.HRef = "Quantri/
                menu_admin.Visible = true;
                menu_phongdt.Visible=menu_phongcths.Visible= menu_giaovien.Visible = menu_sinhvien.Visible = false;
            }

            else if (TienIchWeb.NguoiDungCoQuyen("DT") || TienIchWeb.NguoiDungCoQuyen("dt"))
            {
                menu_phongdt.Visible = true;
                menu_admin.Visible = menu_phongcths.Visible =menu_giaovien.Visible = menu_sinhvien.Visible = false;
            }
            else if (TienIchWeb.NguoiDungCoQuyen("CT"))
            {
                menu_phongcths.Visible = true;
                menu_admin.Visible = menu_phongdt.Visible = menu_giaovien.Visible = menu_sinhvien.Visible = false;
            }
            else if (TienIchWeb.NguoiDungCoQuyen("GV"))
            {
                menu_giaovien.Visible = true;
                menu_admin.Visible = menu_phongdt.Visible = menu_phongcths.Visible = menu_sinhvien.Visible = false;
            }
            else if (TienIchWeb.NguoiDungCoQuyen("SV"))
            {
                menu_sinhvien.Visible = true;
                menu_admin.Visible = menu_phongcths.Visible = menu_phongdt.Visible = menu_giaovien.Visible = false;
            }
            else
                menu_admin.Visible = menu_phongcths.Visible = menu_phongdt.Visible = menu_giaovien.Visible = menu_sinhvien.Visible = false;

        }

        public bool visuabasic { get; set; }
    }
}